﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cxj.WPF.Models
{
    public class AddModel : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler? PropertyChanged;


        public int Value1 { get; set; } = 10;
        public int Value2 { get; set; } = 20;
        //public int Value3 { get; set; }
        private int value3;

        public int Value3
        {
            get { return value3; }
            set
            {
                value3 = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("Value3"));
            }
        }


        public Command BtnCommand { get; set; }

    }
}
